package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 *  实体类。
 *
 * @author youchuang
 * @since 2024/04/24 10:44:01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_document",dataSource = "device")
public class SysDocument implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Integer id;

    private String dataId;

    private String documentType;

    private String materialId;

    private String materialName;

    private Date collectionDate;

    private double num;

    private String unitId;

    private String unitName;

    private Date collectionDateTime;

    private String kingNo;

    private String kingId;

    private String createUserId;

    private String createUserName;

    private String updateUserId;

    private String updateUserName;

    @Column(onInsertValue = "now()")
    private Date createTime;
    @Column(onUpdateValue = "now()")
    private Date updateTime;

    private String useNote;

    private String note;

    private boolean isCheck;
    private boolean isMake;

    private String attribute;

    private Integer frob;

    @Column(ignore = true)
    private boolean show;

}
